package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.elastic.SkuElasticModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author LiDeJie
 * @Create 2024/1/1 17:36
 * @Version 1.0
 */
@FeignClient(value = "gulimall-search")
public interface SearchFeignService {
    
    /**
     * 商品上架
     * /search/save/product
     */
    @PostMapping("/search/save/product")
    R saveProduct(@RequestBody List<SkuElasticModel> skuElasticModelList) ;
}
